package com.kashow.bean.circle.audiio;

import android.os.Parcel;
import android.os.Parcelable;

import com.kashow.bean.BaseBean;

/**
 * Created by yybs on 16/12/22.
 */

public class RecordAudio extends BaseBean implements Parcelable {

    public RecordAudio(String url, String name) {
        this.url = url;
        this.name = name;
    }

    /**
     * _id : 2
     * url : www.baidu.com
     * name : 百度呀
     */

    private int _id;
    private String url;
    private String name;
    private String createdAt;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this._id);
        dest.writeString(this.url);
        dest.writeString(this.name);
        dest.writeString(this.createdAt);
    }

    protected RecordAudio(Parcel in) {
        this._id = in.readInt();
        this.url = in.readString();
        this.name = in.readString();
        this.createdAt = in.readString();
    }

    public static final Creator<RecordAudio> CREATOR = new Creator<RecordAudio>() {
        @Override
        public RecordAudio createFromParcel(Parcel source) {
            return new RecordAudio(source);
        }

        @Override
        public RecordAudio[] newArray(int size) {
            return new RecordAudio[size];
        }
    };
}
